<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-wdyTxnHistory-edit" th:object="${wdyTxnHistory}">
            <input id="id" name="id" th:field="*{id}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label">用户ID：</label>
				<div class="col-sm-8">
					<input id="userId" name="userId" th:field="*{userId}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">交易id：</label>
				<div class="col-sm-8">
					<input id="txnId" name="txnId" th:field="*{txnId}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">流水类型：</label>
				<div class="col-sm-8">
					<input id="txnType" name="txnType" th:field="*{txnType}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">变化金额：</label>
				<div class="col-sm-8">
					<input id="txnAmount" name="txnAmount" th:field="*{txnAmount}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">金额类型：</label>
				<div class="col-sm-8">
					<input id="amountType" name="amountType" th:field="*{amountType}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">交易时间：</label>
				<div class="col-sm-8">
					<input id="txnTime"  name="txnTime" th:value="*{#dates.format(txnTime, 'yyyy-MM-dd HH:mm:ss')}" class="form-control time-input" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">交易描述：</label>
				<div class="col-sm-8">
					<input id="txnDesc" name="txnDesc" th:field="*{txnDesc}" class="form-control" type="text">
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "system/wdyTxnHistory";
		$("#form-wdyTxnHistory-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-wdyTxnHistory-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
